<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ page import="javax.sql.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Reviewer Choice</title>
</head>
<body>

	<logic:present name="hasThreeReviews">

	</logic:present>
<%-- 		<table>
			<html:form>
				<html:submit value="Admit" />
			</html:form>
			<html:form>
				<html:submit value="Reject" />
			</html:form>
			<html:form>
				<html:submit value="Remain Pending" />
			</html:form>
		</table> --%>
	<logic:notPresent name="hasThreeReviews">		
	
			
	<html:form action="/choiceToHome">
		<select property="reviewer">
			<%  RowSet allReviewers = Database.getAllReviewers();
				while (allReviewers.next()) { %>
					<option value="<%=Integer.toString(allReviewers.getInt(2)) %>" > 
						<%= allReviewers.getString(1)%> 
					</option>
				<% } %>
		</select>
		<html:submit value="Suggest Reviewer" />
	</html:form>
			
	</logic:notPresent>
</body>
</html>